package teste;

public class BozoSortAlgorithm extends SortAlgorithm {
	public  void sort(int a[]) throws Exception {
		embaralhar(a);
	}

	void embaralhar(int a[]) {
		for (int i = 0; i < a.length; i++) {
			int j = (int) (i * Math.random());
			int temp = a[i];
			a[i] = a[j];
			a[j] = temp;
		}
	}

}
